export const watermark = (option) => {
  const { body } = document;
  const div = document.createElement('dev');
  const styleStr = `
    position:fixed;
    top:0px;
    left:0px;
    width:100%;
    height:100%;
    z-index:1000;
    pointer-events:none;`;
  div.setAttribute('style', styleStr);
  div.classList.add('__wm');
  body.appendChild(div);
  const obj = document.querySelector('#_watermark_wm');
  const rect = obj.getBoundingClientRect();
  const condiv = document.createElement('div');
  const styleCondiv = `
    position:absolute;
    top:${rect.top}px;
    left:${rect.left}px;
    z-index:2000;
    pointer-events:none;
    background-image: ${option.image}
    `;
  condiv.setAttribute('style', styleCondiv);
  div.appendChild(condiv);
};
